enum Car{
    lamborghini(900),tata(2),audi(50),fiat(15),honda(12);
    private int price;
    Car(int price){
        this.price=price;
    }
    int getPrice(){
        return price;
    }
}
public class Main20 {
    public static void main(String args[]){
        System.out.println("所有汽车的价格");
        for (Car c: Car.values()) {
            System.out.println(c+": "+c.getPrice());
        }
    }
}
